const app = getApp()

Page({
  data: {
    detail: [],
  },
  onLoad: function () {
    this.getDetail();
  },

  getDetail:function(){
    var _this = this;
    tt.request({
      url: 'http://mishu.tangxiaojie.com/api/index.php?act=home&op=detail&article_id=87', // 目标服务器url
      success: (res) => {
        _this.setData({
            detail: res.data.datas.detail,
            listData: res.data.datas.detail.article_composition,
            article_title: res.data.datas.detail.article_title
          })
      },
    });
  }
})
